package com.userrequestdtos;

import java.util.Hashtable;

import org.ksoap2.serialization.KvmSerializable;
import org.ksoap2.serialization.PropertyInfo;

public class RetrivingNotesDTO implements KvmSerializable {

	// declaring variables
	
	public String v_useremail;
	public String v_categoryname;
	public String v_titlename;
	
	// default constructor
	
	public RetrivingNotesDTO()
	{
		// complusory
	}
	public RetrivingNotesDTO(String uemail,String categoryname,String titlename)
	{
		// complusory
		v_useremail=uemail;
		v_categoryname=categoryname;
		v_titlename=titlename;
	}
	@Override
	public Object getProperty(int index) {
		// TODO Auto-generated method stub
		switch (index) {
		case 0:
			return v_useremail;
		case 1:  
			return v_categoryname;
		case 2:
			return v_titlename;

		default:
			break;
		}
		return null;
	}
 
	@Override
	public int getPropertyCount() {
		// TODO Auto-generated method stub
		return 3;
	}

	@Override
	public void getPropertyInfo(int index, Hashtable arg1, PropertyInfo info) {
		// TODO Auto-generated method stub
		switch (index) {
		case 0: 
			info.type=PropertyInfo.STRING_CLASS;
			info.name="v_useremail";
			break;
		case 1:
			info.type=PropertyInfo.STRING_CLASS;
			info.name="v_categoryname";
			break;
		case 2:
			info.type=PropertyInfo.STRING_CLASS;
			info.name="v_titlename";
            break;
		default:
			break;
		}
	}

	@Override
	public void setProperty(int index, Object value) {
		// TODO Auto-generated method stub
		switch (index) {
		case 0:
			v_useremail=value.toString();
			break;
        case 1:
        	v_categoryname=value.toString();
        	break;
        case 2:
        	v_titlename=value.toString();
        	break;
		default:
			break;
		}
	}

	
}
